<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>弹出层</title>
    <style>
        .modal {
            position: fixed;
            /* 固定定位  */
            width: 100%;
            height: 100%;
            left: 0;
            top: 0;
            background-color: rgba(0, 0, 0, .5);
            /* 将背景图片设置成半透明  */
        }

        .modal .container {
            width: 300px;
            height: 185px;
            background-color: #fff;
            border-radius: 10px;
            border: 1px solid #ffeca8;
            border-top: none;
            /* 处于可视窗口的正中间 */
            position: absolute;
            left: 0;
            right: 0;
            top: 0;
            bottom: 0;
            margin: auto;
        }

        .modal .container .num {
            box-sizing: border-box;
            height: 40px;
            line-height: 20px;
            position: relative;
            border-bottom: 1px solid #e3e4e5;
            border-top-left-radius: 10px;
            border-top-right-radius: 10px;
            padding: 10px;
            padding-left: 15px;
            color: #f0601d99;
            font-weight: 600;
            font-size: 20px;
            text-shadow: 1px 1px rgba(255, 255, 255, 0.5);
            background: linear-gradient(to bottom, #ff8a3099, #f0601d99),
                /* linear-gradient(to left, #d00 10%, #ff8a3099) right top no-repeat, */
                linear-gradient(to right, #d00 10%, #ff8a3099) left top no-repeat;

            background-size: 100% 100%, 6px 40px, 6px 40px;
            box-shadow: 0 0 70px #ff8a3099, 0 5px 20px rgba(255, 138, 48, 0.6), inset 0 1px #ffeca8, inset 0 -1px #ffeca8;
        }

        .modal .container .num::before {
            float: right;
            height: 30px;
            width: 30px;
            background-color: #666;
            border-radius: 50%;
            position: absolute;
            right: -20px;
            bottom: 30px;
            margin: 0 auto;
            /* content: ''; */
        }

        .modal .container .num::after {
            float: right;
            height: 20px;
            width: 20px;
            border-radius: 50%;
            position: absolute;
            right: -15px;
            bottom: 35px;
            margin: 0 auto;
            /* content: ''; */
            z-index: 1;
            background: linear-gradient(to left, white, white) left no-repeat,
                linear-gradient(to bottom, white, white) top no-repeat;
            background-size: 20px 2px, 2px 20px;
            transform: rotate(45deg);
        }

        .msg_infor {
            clear: both;
            width: 100%;
            text-align: center;
            font-size: larger;
            font-weight: 600;
            color: #d00;
            padding-top: 20px;
        }


        .button {
            border: 1px solid green;
            -webkit-backdrop-filter: blur(10px);
            backdrop-filter: blur(10px);
            -webkit-transform: skewX(-10deg);
            transform: skewX(-10deg);
            height: 50px;
            width: 200px;
            border-radius: 20px 5px 20px 0px;
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            font: 15px sans-serif;
            font-weight: 300;
            text-shadow: 0 0 20px #fff;
            text-transform: uppercase;
            -webkit-animation: breath2 2s 0.5s infinite alternate;
            animation: breath2 2s 0.5s infinite alternate;
            transition: all 0.2s ease;
            cursor: pointer;
        }

        .button:before {
            content: "";
            display: block;
            width: calc(100% - 22px);
            height: calc(50px - 8px);
            -webkit-animation: breath 2s infinite alternate;
            animation: breath 2s infinite alternate;
            left: 10px;
            top: 3px;
            position: absolute;
            background-color: transparent;
            border: 1px solid #fff;
            border-radius: 15px 3px 15px 3px;
        }

        .button.fire {
            border-color: #ffeca8;
            background-image: linear-gradient(to bottom, rgba(255, 138, 48, 0.6), rgba(240, 96, 29, 0.6));
            box-shadow: 0 0 70px rgba(255, 138, 48, 0.6), 0 5px 20px rgba(255, 138, 48, 0.6), inset 0 1px #ffeca8, inset 0 -1px #ffeca8;
            color: #ffeca8;
        }

        .button.fire:before {
            box-shadow: inset 0 0 30px 0 #ffeca8;
        }

        .button.ice {
            border-color: #a8ecff;
            background-image: linear-gradient(to bottom, rgba(48, 138, 255, 0.5), rgba(29, 96, 240, 0.5));
            box-shadow: 0 0 70px rgba(48, 138, 255, 0.5), 0 5px 20px rgba(48, 138, 255, 0.5), inset 0 1px #ffeca8, inset 0 -1px #ffeca8;
            color: #a8ecff;
        }

        .button.ice:before {
            box-shadow: inset 0 0 30px 0 #a8ecff;
        }

        .button:hover.fire {
            box-shadow: 0 0 70px rgba(255, 138, 48, 0.8), 0 5px 20px rgba(255, 138, 48, 0.8), inset 0 1px #ffeca8, inset 0 -1px #ffeca8;
        }

        .button:hover.fire:before {
            box-shadow: inset 0 0 50px 0 #ffeca8;
        }

        .button:hover.ice {
            box-shadow: 0 0 70px rgba(48, 138, 255, 0.8), 0 5px 20px rgba(48, 138, 255, 0.8), inset 0 1px #a8ecff, inset 0 -1px #a8ecff;
        }

        .button:hover.ice:before {
            box-shadow: inset 0 0 50px 0 #a8ecff;
        }

        .button:active.fire {
            background-color: #ad874b;
        }

        .button:active.fire:before {
            box-shadow: inset 0 0 0px 0 #ffeca8;
        }

        .button:active.ice {
            background-color: rgba(74, 130, 204, 0.8);
            /* box-shadow: 0 0 70px rgba(74, 130, 204, 0.8), 0 5px 20px rgba(48, 138, 255, 0.8), inset 0 1px #a8ecff, inset 0 -1px #a8ecff; */
        }

        .button:active.ice:before {
            box-shadow: inset 0 0 0px 0 #a8ecff;
        }

        .button+.button {
            margin-top: 25px;
            -webkit-animation-delay: 0.3s;
            animation-delay: 0.3s;
        }
        .conf_but{
            box-sizing: border-box;
            width: 300px;
            height: 60px;
            padding-left: 50px;
            position: relative;            
        }
        #bt_y,#bt_n {
            clear: none;
            width: 80px;
            height: 40px;
            display:inline-table;
            font-weight: 700;
            margin-left: 30px;   
            color: #d00;
        }
        #bt_y::before,#bt_n::before{
            height: 30px;
        }
    </style>
</head>

<body>
    <!-- 蒙层或者遮罩层 -->
    <div class="modal ">
        <div class="container">
            <div class="num "> ?! </div>
            <div class="msg_infor">
                确定要 “悔棋” 吗？
            </div>
            <div class="conf_but">
                <button class="button fire b_ui"  id="bt_y"style=" margin: 0;">是</button>
                <button class="button ice b_ui"  id="bt_n" style="color: #d00;">否</button>              
            </div>
        </div>
    </div>
</body>

</html>